#ifndef	KITCHEN_COM_HPP_
# define	KITCHEN_COM_HPP_

# include	<string>
# include	"NamedPipe.hpp"

struct		KitchenCom
{
  KitchenCom(unsigned int id, std::string const& filename) : _id(id), _fifo(filename), _nbCmd(1) {}
  KitchenCom(unsigned int id, NamedPipe fifo) : _id(id), _fifo(fifo), _nbCmd(1) {}
  ~KitchenCom() { }

  bool	isPause() {
    if (this->_nbCmd <= 0)
      return (true);
    return (false);
  }

  unsigned int		_id;
  NamedPipe		_fifo;
  int			_nbCmd;
};

#endif
